import request from '@/utils/request'

// 查询
export function listPutinto(query) {
  return request({
    url: '/service/api/mortgage/list',
    method: 'get',
    params: query
  })
}

// 查询
export function getPutinto(id) {
  return request({
    url: '/service/api/mortgage/info/' + id,
    method: 'get'
  })
}

// 新增
export function addPutinto(data) {
  return request({
    url: '/service/api/mortgage/add',
    method: 'post',
    data: data
  })
}

// 修改
export function updatePutinto(data) {
  return request({
    url: '/service/api/mortgage/edit',
    method: 'post',
    data: data
  })
}

// 待确权，已抵入的数据
export function listEnter() {
  return request({
    url: '/service/api/offset/wait_list',
    method: 'get'
  })
}